From 3914bc9ce61df97063c9a371eb752e198ff7f214 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Wed, 30 Apr 2014 08:38:39 +0200 Subject: [PATCH] button: Remove unneeded checks Size vfuncs always get non-null out variables passed, so no need to check for NULL. --- gtk/gtkbutton.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/gtk/gtkbutton.c b/gtk/gtkbutton.c index aff698e3a8..c13fd6c076 100644 --- a/gtk/gtkbutton.c +++ b/gtk/gtkbutton.c @@ -2250,11 +2250,8 @@ gtk_button_get_size (GtkWidget *widget, natural += child_nat; } - if (minimum_size) - *minimum_size = minimum; - - if (natural_size) - *natural_size = natural; + *minimum_size = minimum; + *natural_size = natural; } static void -- 2.30.2